//
//  IconCollectionViewCell.m
//  jingdongfang
//
//  Created by MTiMac02 on 2017/8/29.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IconCollectionViewCell.h"

@implementation IconCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self initialize];
    }
    return self;
}
    
- (void)initialize {
    self.layer.doubleSided = NO;
    self.image = [[UIImageView alloc] init];
    self.image.backgroundColor = [UIColor clearColor];
    self.image.contentMode = UIViewContentModeCenter;
    self.image.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    [self.contentView addSubview:self.image];
    
    [_image mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView);
        make.right.equalTo(self.contentView);
        make.centerX.equalTo(self.contentView);
    }];
}
@end
